package com.zy.web.demo.json;

import com.google.gson.Gson;

import java.util.HashMap;
import java.util.Map;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/11/23 16:24
 */
public class test {

    public static void main(String[] args) {
        Map<String,String> map = new HashMap<>(2);
        map.put("zy","1");
        map.put("gg","2");
        Gson gson = new Gson();
        String zy = gson.toJson(map);
        System.out.println(zy);
    }

}
